#Maintainer:

pkgname=perl-xml-xpath
pkgver=1.48
pkgrel=1
pkgdesc="A set of modules for parsing and evaluating XPath statements"
arch=('any')
url="https://metacpan.org/release/XML-XPath"
license=('PerlArtistic' 'GPL')
depends=('perl' 'perl-xml-parser')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/M/MA/MANWAR/XML-XPath-$pkgver.tar.gz")
sha1sums=('9e2d46c4dc59493eba6eb987b9cea8c9a4a3878f')

build() {
  cd "${srcdir}/XML-XPath-${pkgver}"
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "${srcdir}/XML-XPath-${pkgver}"
#  make test
}

package() {
  cd "${srcdir}/XML-XPath-${pkgver}"
  make DESTDIR="$pkgdir" install
}
